﻿#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

   //ui->actionNew->setIcon(QIcon("C:/Users/廿一/Desktop/Material _picture/Smiling_face1.jpg"));

   //使用添加Qt资源“：+前缀名+文件名”
    ui->actionNew->setIcon(QIcon(":/Sticker/Material _picture/Smiling_face1.jpg"));
    ui->actionOpen->setIcon(QIcon(":/Sticker/Material _picture/sun1.jpeg"));
}

MainWindow::~MainWindow()
{
    delete ui;
}

